package chapter.job6;
//名字，品种，体重
public class Pet {
    public String name;
    public String weight;

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public int power;
    public void eat(){}
    public void sleep(){}

    public Pet(int power) {
        this.power = power;
    }


    public int getPower() {
        return power;
    }

    public void setPower(int power) {
        this.power = power;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Pet(String name, String weight, int power) {
        this.name = name;
        this.weight = weight;
        this.power = power;
    }
    public Pet() {
    }
}
